<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>BSD::Resource - BSD process resource limit and priority functions - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of BSD-Resource - MetaCPAN" href="https://metacpan.org/dist/BSD-Resource/releases.rss" />
        <link rel="canonical" href="./BSD::Resource.html" />
        <meta name="description" content="BSD process resource limit and priority functions" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/BSD::Resource" />
<meta name="twitter:title"       content="BSD::Resource" />
<meta name="twitter:description" content="BSD process resource limit and priority functions" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./BSD::Resource.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of BSD-Resource was released.">
      <span class="relatize">09 Apr 2017 23:51:05 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/BSD-Resource">BSD-Resource</a>
  </li>
  <li>
    Module version: 1.2911
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/BSD-Resource/source/Resource.pm">Source</a>
    (<a href="https://metacpan.org/dist/BSD-Resource/source/Resource.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/BSD-Resource/source">Browse</a>
    (<a href="https://metacpan.org/dist/BSD-Resource/source?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/BSD-Resource/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/BSD-Resource/contribute">How to Contribute</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=BSD-Resource">Issues</a>
      (1)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=BSD-Resource+1.2911" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/B/BSD-Resource.html?oncpan=1&amp;distmat=1&amp;version=1.2911&amp;grade=2" style="color: #090">228</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/B/BSD-Resource.html?oncpan=1&amp;distmat=1&amp;version=1.2911&amp;grade=3" style="color: #900">1</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/B/BSD-Resource.html?oncpan=1&amp;distmat=1&amp;version=1.2911&amp;grade=4">11</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/JHI/BSD-Resource-1.2911">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on BSD-Resource who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 0
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/BSD-Resource-1.2911/index.html">90.00% Coverage </a>
    </li>
    <li>
      License: unknown
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/BSD-Resource/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/J/JH/JHI/BSD-Resource-1.2911.tar.gz">
      Download (<span itemprop="fileSize">66.58KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FJHI%2FBSD-Resource-1.2911%2FResource.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/BSD-Resource/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/BSD-Resource/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:BSD-Resource">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="BSD-Resource">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/Resource.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="JHI/BSD-Resource-1.2911"
>1.2911
  (JHI on 2017-04-09)</option>
<option
  
  value="JHI/BSD-Resource-1.2910"
>1.2910
  (JHI on 2016-05-13)</option>
<option
  
  value="JHI/BSD-Resource-1.2909"
>1.2909
  (JHI on 2015-11-15)</option>
<optgroup label="BackPAN">'
<option
  
  value="JHI/BSD-Resource-1.2908"
>1.2908
  (JHI on 2015-10-22)</option>
<option
  
  value="JHI/BSD-Resource-1.2907"
>1.2907
  (JHI on 2013-07-13)</option>
<option
  
  value="JHI/BSD-Resource-1.2906"
>1.2906
  (JHI on 2013-07-11)</option>
<option
  
  value="JHI/BSD-Resource-1.2905"
>1.2905
  (JHI on 2013-06-25)</option>
<option
  
  value="JHI/BSD-Resource-1.2904"
>1.2904
  (JHI on 2010-03-15)</option>
<option
  
  value="JHI/BSD-Resource-1.2903"
>1.2903
  (JHI on 2009-03-31)</option>
<option
  
  value="JHI/BSD-Resource-1.2902"
>1.2902
  (JHI on 2008-12-30)</option>
<option
  
  value="JHI/BSD-Resource-1.2901"
>1.2901
  (JHI on 2008-01-29)</option>
<option
  
  value="JHI/BSD-Resource-1.29"
>1.29
  (JHI on 2008-01-28)</option>
<option
  
  value="JHI/BSD-Resource-1.28"
>1.28
  (JHI on 2006-05-26)</option>
<option
  
  value="JHI/BSD-Resource-1.26"
>1.26
  (JHI on 2006-05-21)</option>
<option
  
  value="JHI/BSD-Resource-1.25"
>1.25
  (JHI on 2006-04-09)</option>
<option
  
  value="JHI/BSD-Resource-1.24"
>1.24
  (JHI on 2004-02-29)</option>
<option
  
  value="JHI/BSD-Resource-1.23"
>1.23
  (JHI on 2003-10-07)</option>
<option
  
  value="JHI/BSD-Resource-1.22"
>1.22
  (JHI on 2003-02-09)</option>
<option
  
  value="JHI/BSD-Resource-1.21"
>1.21
  (JHI on 2002-12-11)</option>
<option
  
  value="JHI/BSD-Resource-1.20"
>1.20
  (JHI on 2002-11-26)</option>
<option
  
  value="JHI/BSD-Resource-1.19"
>1.19
  (JHI on 2002-11-22)</option>
<option
  
  value="JHI/BSD-Resource-1.18"
>1.18
  (JHI on 2002-11-20)</option>
<option
  
  value="JHI/BSD-Resource-1.17"
>1.17
  (JHI on 2002-09-19)</option>
<option
  
  value="JHI/BSD-Resource-1.16"
>1.16
  (JHI on 2002-09-15)</option>
<option
  
  value="JHI/BSD-Resource-1.15"
>1.15
  (JHI on 2002-05-09)</option>
<option
  
  value="JHI/BSD-Resource-1.14"
>1.14
  (JHI on 2002-01-26)</option>
<option
  
  value="JHI/BSD-Resource-1.13"
>1.13
  (JHI on 2002-01-22)</option>
<option
  
  value="JHI/BSD-Resource-1.12"
>1.12
  (JHI on 2002-01-16)</option>
<option
  
  value="JHI/BSD-Resource-1.11"
>1.11
  (JHI on 2001-09-28)</option>
<option
  
  value="JHI/BSD-Resource-1.10"
>1.10
  (JHI on 2001-03-05)</option>
<option
  
  value="JHI/BSD-Resource-1.09"
>1.09
  (JHI on 2000-10-30)</option>
<option
  
  value="JHI/BSD-Resource-1.08"
>1.08
  (JHI on 2000-04-15)</option>
<option
  
  value="JHI/BSD-Resource-1.0701"
>1.0701
  (JHI on 1998-01-20)</option>
<option
  
  value="JHI/BSD-Resource-1.07.00"
>1.07.00
  (JHI on 1998-01-18)</option>
<option
  
  value="JHI/BSD-Resource-1.06"
>1.06
  (JHI on 1997-06-02)</option>
<option
  
  value="JHI/BSD-Resource-1.05_02"
>1.05_02 DEV
  (JHI on 1997-04-27)</option>
<option
  
  value="JHI/BSD-Resource-1.05_01"
>1.05_01 DEV
  (JHI on 1997-04-26)</option>
<option
  
  value="JHI/BSD-Resource-1.05"
>1.05
  (JHI on 1997-04-10)</option>
<option
  
  value="JHI/BSD-Resource-1.03"
>1.03
  (JHI on 1996-02-17)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/JHI/BSD-Resource-1.2911/diff/' + encodeURIComponent(this.value) + '/Resource.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="JHI/BSD-Resource-1.2911"
>1.2911
  (JHI on 2017-04-09)</option>
<option
  
  value="JHI/BSD-Resource-1.2910"
>1.2910
  (JHI on 2016-05-13)</option>
<option
  
  value="JHI/BSD-Resource-1.2909"
>1.2909
  (JHI on 2015-11-15)</option>
<optgroup label="BackPAN">'
<option
  
  value="JHI/BSD-Resource-1.2908"
>1.2908
  (JHI on 2015-10-22)</option>
<option
  
  value="JHI/BSD-Resource-1.2907"
>1.2907
  (JHI on 2013-07-13)</option>
<option
  
  value="JHI/BSD-Resource-1.2906"
>1.2906
  (JHI on 2013-07-11)</option>
<option
  
  value="JHI/BSD-Resource-1.2905"
>1.2905
  (JHI on 2013-06-25)</option>
<option
  
  value="JHI/BSD-Resource-1.2904"
>1.2904
  (JHI on 2010-03-15)</option>
<option
  
  value="JHI/BSD-Resource-1.2903"
>1.2903
  (JHI on 2009-03-31)</option>
<option
  
  value="JHI/BSD-Resource-1.2902"
>1.2902
  (JHI on 2008-12-30)</option>
<option
  
  value="JHI/BSD-Resource-1.2901"
>1.2901
  (JHI on 2008-01-29)</option>
<option
  
  value="JHI/BSD-Resource-1.29"
>1.29
  (JHI on 2008-01-28)</option>
<option
  
  value="JHI/BSD-Resource-1.28"
>1.28
  (JHI on 2006-05-26)</option>
<option
  
  value="JHI/BSD-Resource-1.26"
>1.26
  (JHI on 2006-05-21)</option>
<option
  
  value="JHI/BSD-Resource-1.25"
>1.25
  (JHI on 2006-04-09)</option>
<option
  
  value="JHI/BSD-Resource-1.24"
>1.24
  (JHI on 2004-02-29)</option>
<option
  
  value="JHI/BSD-Resource-1.23"
>1.23
  (JHI on 2003-10-07)</option>
<option
  
  value="JHI/BSD-Resource-1.22"
>1.22
  (JHI on 2003-02-09)</option>
<option
  
  value="JHI/BSD-Resource-1.21"
>1.21
  (JHI on 2002-12-11)</option>
<option
  
  value="JHI/BSD-Resource-1.20"
>1.20
  (JHI on 2002-11-26)</option>
<option
  
  value="JHI/BSD-Resource-1.19"
>1.19
  (JHI on 2002-11-22)</option>
<option
  
  value="JHI/BSD-Resource-1.18"
>1.18
  (JHI on 2002-11-20)</option>
<option
  
  value="JHI/BSD-Resource-1.17"
>1.17
  (JHI on 2002-09-19)</option>
<option
  
  value="JHI/BSD-Resource-1.16"
>1.16
  (JHI on 2002-09-15)</option>
<option
  
  value="JHI/BSD-Resource-1.15"
>1.15
  (JHI on 2002-05-09)</option>
<option
  
  value="JHI/BSD-Resource-1.14"
>1.14
  (JHI on 2002-01-26)</option>
<option
  
  value="JHI/BSD-Resource-1.13"
>1.13
  (JHI on 2002-01-22)</option>
<option
  
  value="JHI/BSD-Resource-1.12"
>1.12
  (JHI on 2002-01-16)</option>
<option
  
  value="JHI/BSD-Resource-1.11"
>1.11
  (JHI on 2001-09-28)</option>
<option
  
  value="JHI/BSD-Resource-1.10"
>1.10
  (JHI on 2001-03-05)</option>
<option
  
  value="JHI/BSD-Resource-1.09"
>1.09
  (JHI on 2000-10-30)</option>
<option
  
  value="JHI/BSD-Resource-1.08"
>1.08
  (JHI on 2000-04-15)</option>
<option
  
  value="JHI/BSD-Resource-1.0701"
>1.0701
  (JHI on 1998-01-20)</option>
<option
  
  value="JHI/BSD-Resource-1.07.00"
>1.07.00
  (JHI on 1998-01-18)</option>
<option
  
  value="JHI/BSD-Resource-1.06"
>1.06
  (JHI on 1997-06-02)</option>
<option
  
  value="JHI/BSD-Resource-1.05_02"
>1.05_02 DEV
  (JHI on 1997-04-27)</option>
<option
  
  value="JHI/BSD-Resource-1.05_01"
>1.05_01 DEV
  (JHI on 1997-04-26)</option>
<option
  
  value="JHI/BSD-Resource-1.05"
>1.05
  (JHI on 1997-04-10)</option>
<option
  
  value="JHI/BSD-Resource-1.03"
>1.03
  (JHI on 1996-02-17)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><i class="ttip" title="dynamic_config enabled">unknown</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/BSD::Resource/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=BSD%3A%3AResource">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=BSD-Resource">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/JHI/BSD-Resource-1.2911/view/Resource.pm">This version</a>
    </li>
    <li>
      <a href="./BSD::Resource.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MMCLERIC"><img src="https://www.gravatar.com/avatar/d83bc667b8ec21a5b2861b22485024c7?d=identicon&amp;s=20" title="MMCLERIC" alt="MMCLERIC"></a>
<a class="display-all" href="https://metacpan.org/author/POTATOGIM"><img src="https://www.gravatar.com/avatar/82f1c6258702415af6e26187f1e36850?d=identicon&amp;s=20" title="POTATOGIM" alt="POTATOGIM"></a>
<a class="display-all" href="https://metacpan.org/author/JNBEK"><img src="https://www.gravatar.com/avatar/499c962737f2931cbce15097c5cf4002?d=identicon&amp;s=20" title="JNBEK" alt="JNBEK"></a>
<a class="display-all" href="https://metacpan.org/author/ILUX"><img src="https://www.gravatar.com/avatar/1cd0eea5e6ca13346060bb9d2c1e286b?d=identicon&amp;s=20" title="ILUX" alt="ILUX"></a>
<a class="display-all" href="https://metacpan.org/author/KEEDI"><img src="https://www.gravatar.com/avatar/95f905a7a4ccc573c711e9d264c0fde8?d=identicon&amp;s=20" title="KEEDI" alt="KEEDI"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/BSD-Resource/plussers">6 PAUSE users</a>
</div>
<div>
    2 non-PAUSE users
</div>
</div>
    </li>
    <li>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/JHI" class="author-name">Jarkko Hietaniemi</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/Resource.pm&#39;" class="">
<option
  selected
  value="JHI/BSD-Resource-1.2911"
>1.2911
  (JHI on 2017-04-09)</option>
<option
  
  value="JHI/BSD-Resource-1.2910"
>1.2910
  (JHI on 2016-05-13)</option>
<option
  
  value="JHI/BSD-Resource-1.2909"
>1.2909
  (JHI on 2015-11-15)</option>
<optgroup label="BackPAN">'
<option
  
  value="JHI/BSD-Resource-1.2908"
>1.2908
  (JHI on 2015-10-22)</option>
<option
  
  value="JHI/BSD-Resource-1.2907"
>1.2907
  (JHI on 2013-07-13)</option>
<option
  
  value="JHI/BSD-Resource-1.2906"
>1.2906
  (JHI on 2013-07-11)</option>
<option
  
  value="JHI/BSD-Resource-1.2905"
>1.2905
  (JHI on 2013-06-25)</option>
<option
  
  value="JHI/BSD-Resource-1.2904"
>1.2904
  (JHI on 2010-03-15)</option>
<option
  
  value="JHI/BSD-Resource-1.2903"
>1.2903
  (JHI on 2009-03-31)</option>
<option
  
  value="JHI/BSD-Resource-1.2902"
>1.2902
  (JHI on 2008-12-30)</option>
<option
  
  value="JHI/BSD-Resource-1.2901"
>1.2901
  (JHI on 2008-01-29)</option>
<option
  
  value="JHI/BSD-Resource-1.29"
>1.29
  (JHI on 2008-01-28)</option>
<option
  
  value="JHI/BSD-Resource-1.28"
>1.28
  (JHI on 2006-05-26)</option>
<option
  
  value="JHI/BSD-Resource-1.26"
>1.26
  (JHI on 2006-05-21)</option>
<option
  
  value="JHI/BSD-Resource-1.25"
>1.25
  (JHI on 2006-04-09)</option>
<option
  
  value="JHI/BSD-Resource-1.24"
>1.24
  (JHI on 2004-02-29)</option>
<option
  
  value="JHI/BSD-Resource-1.23"
>1.23
  (JHI on 2003-10-07)</option>
<option
  
  value="JHI/BSD-Resource-1.22"
>1.22
  (JHI on 2003-02-09)</option>
<option
  
  value="JHI/BSD-Resource-1.21"
>1.21
  (JHI on 2002-12-11)</option>
<option
  
  value="JHI/BSD-Resource-1.20"
>1.20
  (JHI on 2002-11-26)</option>
<option
  
  value="JHI/BSD-Resource-1.19"
>1.19
  (JHI on 2002-11-22)</option>
<option
  
  value="JHI/BSD-Resource-1.18"
>1.18
  (JHI on 2002-11-20)</option>
<option
  
  value="JHI/BSD-Resource-1.17"
>1.17
  (JHI on 2002-09-19)</option>
<option
  
  value="JHI/BSD-Resource-1.16"
>1.16
  (JHI on 2002-09-15)</option>
<option
  
  value="JHI/BSD-Resource-1.15"
>1.15
  (JHI on 2002-05-09)</option>
<option
  
  value="JHI/BSD-Resource-1.14"
>1.14
  (JHI on 2002-01-26)</option>
<option
  
  value="JHI/BSD-Resource-1.13"
>1.13
  (JHI on 2002-01-22)</option>
<option
  
  value="JHI/BSD-Resource-1.12"
>1.12
  (JHI on 2002-01-16)</option>
<option
  
  value="JHI/BSD-Resource-1.11"
>1.11
  (JHI on 2001-09-28)</option>
<option
  
  value="JHI/BSD-Resource-1.10"
>1.10
  (JHI on 2001-03-05)</option>
<option
  
  value="JHI/BSD-Resource-1.09"
>1.09
  (JHI on 2000-10-30)</option>
<option
  
  value="JHI/BSD-Resource-1.08"
>1.08
  (JHI on 2000-04-15)</option>
<option
  
  value="JHI/BSD-Resource-1.0701"
>1.0701
  (JHI on 1998-01-20)</option>
<option
  
  value="JHI/BSD-Resource-1.07.00"
>1.07.00
  (JHI on 1998-01-18)</option>
<option
  
  value="JHI/BSD-Resource-1.06"
>1.06
  (JHI on 1997-06-02)</option>
<option
  
  value="JHI/BSD-Resource-1.05_02"
>1.05_02 DEV
  (JHI on 1997-04-27)</option>
<option
  
  value="JHI/BSD-Resource-1.05_01"
>1.05_01 DEV
  (JHI on 1997-04-26)</option>
<option
  
  value="JHI/BSD-Resource-1.05"
>1.05
  (JHI on 1997-04-10)</option>
<option
  
  value="JHI/BSD-Resource-1.03"
>1.03
  (JHI on 1996-02-17)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/BSD-Resource">BSD-Resource-1.2911</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage two &#10;
          • 15 direct dependents &#10;          • 36 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="BSD-Resource-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="BSD-Resource-1.2911">
    <input type="hidden" name="author" value="JHI">
    <input type="hidden" name="distribution" value="BSD-Resource">
    <button type="submit" class="favorite highlight"><span>8</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./BSD::Resource.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>8</span> ++</a>
</div>
   / <span>BSD::Resource</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./BSD::Resource.html#NAME">NAME</a></li>
  <li><a href="./BSD::Resource.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./BSD::Resource.html#DESCRIPTION">DESCRIPTION</a>
    <ul>
      <li><a href="./BSD::Resource.html#getrusage">getrusage</a></li>
      <li><a href="./BSD::Resource.html#getrlimit">getrlimit</a></li>
      <li><a href="./BSD::Resource.html#getpriority">getpriority</a></li>
      <li><a href="./BSD::Resource.html#setrlimit">setrlimit</a></li>
      <li><a href="./BSD::Resource.html#setpriority">setpriority</a></li>
      <li><a href="./BSD::Resource.html#times">times</a></li>
      <li><a href="./BSD::Resource.html#get_rlimits">get_rlimits</a></li>
    </ul>
  </li>
  <li><a href="./BSD::Resource.html#ERRORS">ERRORS</a></li>
  <li><a href="./BSD::Resource.html#EXAMPLES">EXAMPLES</a></li>
  <li><a href="./BSD::Resource.html#KNOWN-ISSUES">KNOWN ISSUES</a></li>
  <li><a href="./BSD::Resource.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
  <li><a href="./BSD::Resource.html#AUTHOR">AUTHOR</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>BSD::Resource - BSD process resource limit and priority functions</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>        use BSD::Resource;

        #
        # the process resource consumption so far
        #

        ($usertime, $systemtime,
         $maxrss, $ixrss, $idrss, $isrss, $minflt, $majflt, $nswap,
         $inblock, $oublock, $msgsnd, $msgrcv,
         $nsignals, $nvcsw, $nivcsw) = getrusage($ru_who);

        $rusage = getrusage($ru_who);

        #
        # the process resource limits
        #

        ($nowsoft, $nowhard) = getrlimit($resource);

        $rlimit = getrlimit($resource);

        $success = setrlimit($resource, $newsoft, $newhard);

        #
        # the process scheduling priority
        #

        $nowpriority = getpriority($pr_which, $pr_who);

        $success = setpriority($pr_which, $pr_who, $priority);

        # The following is not a BSD function.
        # It is a Perlish utility for the users of BSD::Resource.

        $rlimits = get_rlimits();</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<h2 id="getrusage">getrusage</h2>

<pre><code>        ($usertime, $systemtime,
         $maxrss, $ixrss, $idrss, $isrss, $minflt, $majflt, $nswap,
         $inblock, $oublock, $msgsnd, $msgrcv,
         $nsignals, $nvcsw, $nivcsw) = getrusage($ru_who);

        $rusage = getrusage($ru_who);

        # $ru_who argument is optional; it defaults to RUSAGE_SELF

        $rusage = getrusage();</code></pre>

<p>The $ru_who argument is either <code>RUSAGE_SELF</code> (the current process) or <code>RUSAGE_CHILDREN</code> (all the child processes of the current process) or it maybe left away in which case <code>RUSAGE_SELF</code> is used.</p>

<p>The <code>RUSAGE_CHILDREN</code> is the total sum of all the so far <i>terminated</i> (either successfully or unsuccessfully) child processes: there is no way to find out information about child processes still running.</p>

<p>On some systems (those supporting both getrusage() with the POSIX threads) there can also be <code>RUSAGE_THREAD</code>. The BSD::Resource supports the <code>RUSAGE_THREAD</code> if it is present but understands nothing more about the POSIX threads themselves. Similarly for <code>RUSAGE_BOTH</code>: some systems support retrieving the sums of the self and child resource consumptions simultaneously.</p>

<p>In list context getrusage() returns the current resource usages as a list. On failure it returns an empty list.</p>

<p>The elements of the list are, in order: index name meaning usually (quite system dependent)</p>

<pre><code>         0      utime           user time
         1      stime           system time
         2      maxrss          maximum shared memory or current resident set
         3      ixrss           integral shared memory
         4      idrss           integral or current unshared data
         5      isrss           integral or current unshared stack
         6      minflt          page reclaims
         7      majflt          page faults
         8      nswap           swaps
         9      inblock         block input operations
        10      oublock         block output operations
        11      msgsnd          messages sent
        12      msgrcv          messaged received
        13      nsignals        signals received
        14      nvcsw           voluntary context switches
        15      nivcsw          involuntary context switches</code></pre>

<p>In scalar context getrusage() returns the current resource usages as a an object. The object can be queried via methods named exactly like the middle column, <i>name</i>, in the above table.</p>

<pre><code>        $ru = getrusage();
        print $ru-&gt;stime, &quot;\n&quot;;

        $total_context_switches = $ru-&gt;nvcsw + $ru-&gt;nivcsw;</code></pre>

<p>For a detailed description about the values returned by getrusage() please consult your usual C programming documentation about getrusage() and also the header file <code>&lt;sys/resource.h&gt;</code>. (In <b>Solaris</b>, this might be <code>&lt;sys/rusage.h&gt;</code>).</p>

<p>See also <a href="./BSD::Resource.html#KNOWN-ISSUES">&quot;KNOWN ISSUES&quot;</a>.</p>

<h2 id="getrlimit">getrlimit</h2>

<pre><code>        ($nowsoft, $nowhard) = getrlimit($resource);

        $rlimit = getrlimit($resource);</code></pre>

<p>The $resource argument can be one of</p>

<pre><code>        $resource               usual meaning           usual unit

        RLIMIT_CPU              CPU time                seconds

        RLIMIT_FSIZE            file size               bytes

        RLIMIT_DATA             data size               bytes
        RLIMIT_STACK            stack size              bytes
        RLIMIT_CORE             coredump size           bytes
        RLIMIT_RSS              resident set size       bytes
        RLIMIT_MEMLOCK          memory locked data size bytes

        RLIMIT_NPROC            number of processes     1

        RLIMIT_NOFILE           number of open files    1
        RLIMIT_OFILE            number of open files    1
        RLIMIT_OPEN_MAX         number of open files    1

        RLIMIT_LOCKS            number of file locks    1

        RLIMIT_AS               (virtual) address space bytes
        RLIMIT_VMEM             virtual memory (space)  bytes

        RLIMIT_PTHREAD          number of pthreads      1
        RLIMIT_TCACHE           maximum number of       1
                                cached threads

        RLIMIT_AIO_MEM          maximum memory locked   bytes
                                for POSIX AIO
        RLIMIT_AIO_OPS          maximum number          1
                                for POSIX AIO ops

        RLIMIT_FREEMEM          portion of the total memory

        RLIMIT_NTHR             maximum number of       1
                                threads

        RLIMIT_NPTS             maximum number of       1
                                pseudo-terminals

        RLIMIT_RSESTACK         RSE stack size          bytes

        RLIMIT_SBSIZE           socket buffer size      bytes

        RLIMIT_SWAP             maximum swap size       bytes

        RLIMIT_MSGQUEUE         POSIX mq size           bytes

        RLIMIT_RTPRIO           maximum RT priority     1
        RLIMIT_RTTIME           maximum RT time         microseconds
        RLIMIT_SIGPENDING       pending signals         1</code></pre>

<p><b>What limits are available depends on the operating system</b>.</p>

<p>See below for <code>get_rlimits()</code> on how to find out which limits are available, for the exact documentation consult the documentation of your operating system (setrlimit documentation, usually).</p>

<p>The two groups (<code>NOFILE</code>, <code>OFILE</code>, <code>OPEN_MAX</code>) and (<code>AS</code>, <code>VMEM</code>) are aliases within themselves.</p>

<p>Two meta-resource-symbols might exist</p>

<pre><code>        RLIM_NLIMITS
        RLIM_INFINITY</code></pre>

<p><code>RLIM_NLIMITS</code> being the number of possible (but not necessarily fully supported) resource limits, see also the get_rlimits() call below. <code>RLIM_INFINITY</code> is useful in setrlimit(), the <code>RLIM_INFINITY</code> is often represented as minus one (-1).</p>

<p>In list context <code>getrlimit()</code> returns the current soft and hard resource limits as a list. On failure it returns an empty list.</p>

<p>Processes have soft and hard resource limits. On crossing the soft limit they receive a signal (for example the <code>SIGXCPU</code> or <code>SIGXFSZ</code>, corresponding to the <code>RLIMIT_CPU</code> and <code>RLIMIT_FSIZE</code>, respectively). The processes can trap and handle some of these signals, please see <a href="https://metacpan.org/pod/perlipc#Signals">&quot;Signals&quot; in perlipc</a>. After the hard limit the processes will be ruthlessly killed by the <code>KILL</code> signal which cannot be caught.</p>

<p><b>NOTE</b>: the level of &#39;support&#39; for a resource varies. Not all the systems</p>

<pre><code>        a) even recognise all those limits
        b) really track the consumption of a resource
        c) care (send those signals) if a resource limit is exceeded</code></pre>

<p>Again, please consult your usual C programming documentation.</p>

<p>One notable exception for the better: officially <b>HP-UX</b> does not support getrlimit() at all but for the time being, it does seem to.</p>

<p>In scalar context <code>getrlimit()</code> returns the current soft limit. On failure it returns <code>undef</code>.</p>

<h2 id="getpriority">getpriority</h2>

<pre><code>        # $pr_which can be PRIO_USER, PRIO_PROCESS, or PRIO_PGRP,
        # and in some systems PRIO_THREAD

        $nowpriority = getpriority($pr_which, $pr_who);

        # the default $pr_who is 0 (the current $pr_which)

        $nowpriority = getpriority($pr_which);

        # the default $pr_which is PRIO_PROCESS (the process priority)

        $nowpriority = getpriority();</code></pre>

<p>getpriority() returns the current priority. <b>NOTE</b>: getpriority() can return zero or negative values completely legally. On failure getpriority() returns <code>undef</code> (and <code>$!</code> is set as usual).</p>

<p>The priorities returned by getpriority() are in the (inclusive) range <code>PRIO_MIN</code>...<code>PRIO_MAX</code>. The $pr_which argument can be any of PRIO_PROCESS (a process) <code>PRIO_USER</code> (a user), or <code>PRIO_PGRP</code> (a process group). The $pr_who argument tells which process/user/process group, 0 signifying the current one.</p>

<p>Usual values for <code>PRIO_MIN</code>, <code>PRIO_MAX</code>, are -20, 20. A negative value means better priority (more impolite process), a positive value means worse priority (more polite process).</p>

<h2 id="setrlimit">setrlimit</h2>

<pre><code>        $success = setrlimit($resource, $newsoft, $newhard);</code></pre>

<p>setrlimit() returns true on success and <code>undef</code> on failure.</p>

<p><b>NOTE</b>: A normal user process can only lower its resource limits. Soft or hard limit <code>RLIM_INFINITY</code> means as much as possible, the real hard limits are normally buried inside the kernel and are <b>very</b> system-dependent.</p>

<p><b>NOTE</b>: Even the soft limit that is actually set might be lower than what requested for various reasons. One possibility is that the actual limit on a resource might be controlled by some system variable (e.g. in BSD systems the RLIMIT_NPROC can be capped by the system variable <code>maxprocperuid</code>, try <code>sysctl -a kern.maxprocperuid</code>), or in many environments core dumping has been disabled from normal user processes. Another possibility is that a limit is rounded down to some alignment or granularity, for example the memory limits might be rounded down to the closest 4 kilobyte boundary. In other words, do not expect to be able to setrlimit() a limit to a value and then be able to read back the same value with getrlimit().</p>

<h2 id="setpriority">setpriority</h2>

<pre><code>        $success = setpriority($pr_which, $pr_who, $priority);

        # NOTE! If there are two arguments the second one is
        # the new $priority (not $pr_who) and the $pr_who is
        # defaulted to 0 (the current $pr_which)

        $success = setpriority($pr_which, $priority);

        # The $pr_who defaults to 0 (the current $pr_which) and
        # the $priority defaults to half of the PRIO_MAX, usually
        # that amounts to 10 (being a nice $pr_which).

        $success = setpriority($pr_which);

        # The $pr_which defaults to PRIO_PROCESS.

        $success = setpriority();</code></pre>

<p>setpriority() is used to change the scheduling priority. A positive priority means a more polite process/process group/user; a negative priority means a more impolite process/process group/user. The priorities handled by setpriority() are [<code>PRIO_MIN</code>,<code>PRIO_MAX</code>]. A normal user process can only lower its priority (make it more positive).</p>

<p><b>NOTE</b>: A successful call returns <code>1</code>, a failed one <code>0</code>.</p>

<p>See also <a href="./BSD::Resource.html#KNOWN-ISSUES">&quot;KNOWN ISSUES&quot;</a>.</p>

<h2 id="times">times</h2>

<pre><code>        use BSD::Resource qw(times);

        ($user, $system, $child_user, $child_system) = times();</code></pre>

<p>The BSD::Resource module offers a times() implementation that has usually slightly better time granularity than the times() by Perl core. The time granularity of the latter is usually 1/60 seconds while the former may achieve submilliseconds.</p>

<p><b>NOTE</b>: The current implementation uses two getrusage() system calls: one with RUSAGE_SELF and one with RUSAGE_CHILDREN. Therefore the operation is not `atomic&#39;: the times for the children are recorded a little bit later.</p>

<p><b>NOTE</b>: times() is not imported by default by BSD::Resource. You need to tell that you want to use it.</p>

<p><b>NOTE: times() is not a &quot;real BSD&quot; function. It is older UNIX.</b></p>

<h2 id="get_rlimits">get_rlimits</h2>

<pre><code>        use BSD::Resource qw{get_rlimits};
        my $limits = get_rlimits();</code></pre>

<p><b>NOTE: This is not a real BSD function. It is a convenience function introduced by BSD::Resource.</b></p>

<p>get_rlimits() returns a reference to hash which has the names of the available resource limits as keys and their indices (those which are needed as the first argument to getrlimit() and setrlimit()) as values. For example:</p>

<pre><code>        use BSD::Resource qw{get_rlimits};
        my $limits = get_rlimits();
        for my $name (keys %$limits) {
          my ($soft, $hard) = BSD::Resource::getrlimit($limits-&gt;{$name});
          print &quot;$name soft $soft hard $hard\n&quot;;
        }</code></pre>

<p>Note that a limit of -1 means unlimited.</p>

<h1 id="ERRORS">ERRORS</h1>

<ul>

<li><p></p>

<pre><code>        Your vendor has not defined BSD::Resource macro ...</code></pre>

<p>The code tried to call getrlimit/setrlimit for a resource limit that your operating system vendor/supplier does not support. Portable code should use get_rlimits() to check which resource limits are defined.</p>

</li>
</ul>

<h1 id="EXAMPLES">EXAMPLES</h1>

<pre><code>        # the user and system times so far by the process itself

        ($usertime, $systemtime) = getrusage();

        # ditto in OO way

        $ru = getrusage();

        $usertime   = $ru-&gt;utime;
        $systemtime = $ru-&gt;stime;

        # get the current priority level of this process

        $currprio = getpriority();</code></pre>

<h1 id="KNOWN-ISSUES"><a id="KNOWN"></a>KNOWN ISSUES</h1>

<p>In <b>AIX</b> (at least version 3, maybe later also releases) if the BSD compatibility library is not installed or not found by the BSD::Resource installation procedure and when using the getpriority() or setpriority(), the <code>PRIO_MIN</code> is 0 (corresponding to -20) and <code>PRIO_MAX</code> is 39 (corresponding to 19, the BSD priority 20 is unreachable).</p>

<p>In <b>HP-UX</b> the getrusage() is not Officially Supported at all but for the time being, it does seem to be.</p>

<p>In <b>Mac OS X</b> a normal user cannot raise the <code>RLIM_NPROC</code> over the maxprocperuid limit (the default value is 266, try the command <code>sysctl -a kern.maxprocperuid</code>).</p>

<p>In <b>NetBSD</b> <code>RLIMIT_STACK</code> setrlimit() calls fail.</p>

<p>In <b>Cygwin</b> <code>RLIMIT_STACK</code> setrlimit calls fail. Also, setrlimit() <code>RLIMIT_NOFILE/RLIMIT_OFILE/RLIMIT_OFILE</code> calls return success, but then the subsequent getrlimit calls show that the limits didn&#39;t really change.</p>

<p>Because not all UNIX kernels are BSD and also because of the sloppy support of getrusage() by many vendors many of the getrusage() values may not be correctly updated. For example <b>Solaris 1</b> claims in <code>&lt;sys/rusage.h&gt;</code> that the <code>ixrss</code> and the <code>isrss</code> fields are always zero. In <b>SunOS 5.5 and 5.6</b> the getrusage() leaves most of the fields zero and therefore getrusage() is not even used, instead of that the <b>/proc</b> interface is used. The mapping is not perfect: the <code>maxrss</code> field is really the <b>current</b> resident size instead of the maximum, the <code>idrss</code> is really the <b>current</b> heap size instead of the integral data, and the <code>isrss</code> is really the <b>current</b> stack size instead of the integral stack. The ixrss has no sensible counterpart at all so it stays zero.</p>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>Copyright 1995-2017 Jarkko Hietaniemi All Rights Reserved</p>

<p>This module free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0 or GNU Lesser General Public License 2.0. For more details, see the full text of the licenses at &lt;http://www.perlfoundation.org/artistic_license_2_0&gt;, and &lt;http://www.gnu.org/licenses/gpl-2.0.html&gt;.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Jarkko Hietaniemi, <code>jhi@iki.fi</code></p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install BSD::Resource, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm BSD::Resource</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install BSD::Resource</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./BSD::Resource.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
